using System;
using YatFram;

namespace Examples.Google
{
    public class GoogleContext : IContext
    {
        private readonly GoogleBrowser _browser;

        public GoogleContext(GoogleBrowser browser)
        {
            _browser = browser;
        }

        public GoogleBrowser Browser
        {
            get { return _browser; }
        }

        public void Reset()
        {
            throw new NotImplementedException();
        }

        public void Dump()
        {
            Console.WriteLine(_browser.Dump());
        }

        public void Dispose()
        {
            _browser.Dispose();
        }
    }
}